https://glot.io/snippets/geydib85at/raw/main.lua